<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
		'id'=>'aula-form',
		'enableAjaxValidation'=>false,
)); ?>
<br />
<br />
<p class="help-block">
	Campos com <span class="required">*</span> são obrigatórios.
</p>

<?php echo $form->errorSummary($model); ?>

<?php echo $form->textFieldRow($model,'local',array('class'=>'span5','maxlength'=>45)); ?>
<div class="row">
	<span style="float: left; width: 250px; margin-left: 30px"> <?php 
	$turno_list = Caracteristica::model()->findAllByAttributes(array('tipo'=>'Horario'));
	$turnos = array();
	foreach ($turno_list as $turno) {
		$turnos[$turno->nome] = $turno->nome;
	}
	?> <?php echo $form->labelEx($model, 'horario')?> <?php echo $form->dropDownList($model, 'horario', $turnos, array('empty' => '')); ?>
		<?php echo $form->error($model, 'horario')?>
	</span>
	<span style="float: left; width: 250px;"> <?php echo $form->labelEx($model,'data'); ?>
		<?php
		$this->widget('zii.widgets.jui.CJuiDatePicker', array(
				'model'=>$model,
				'attribute'=>'data',
				'name' => 'data',
				'options'=>array(
						'type' => 'date',
							'dateFormat'=>'dd-mm-yy',
							'style' => 'width:207px',
							'showAnim'=>'slide',//'slide','fold','slideDown','fadeIn','blind','bounce','clip','drop'
							'changeMonth'=>true,
							'changeYear'=>true,
							'yearRange'=>'1900:2099',
							'minDate' => '01-01-1900',      // minimum date
							'maxDate' => '31-12-2099',

				),
		)); ?> <?php echo $form->error($model,'inicio_inscricao'); ?>
	</span>
</div>
<?php echo $form->textFieldRow($model,'fatores',array('class'=>'span5','maxlength'=>250)); ?>

<?php echo $form->textFieldRow($model,'observacao',array('class'=>'span5','maxlength'=>250)); ?>

<div align="center" class="form-actions">
	<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>$model->isNewRecord ? 'Cadastrar' : 'Salvar',
		)); ?>
</div>

<?php $this->endWidget(); ?>
